#ifndef USER_H
#define USER_H

#include <QWidget>
class user
{
public:
    static user* getInstance();
    //把复制构造函数和=操作符也设为私有,防止被复制
    user(const user&);
    user& operator=(const user&);
    static user* muser;
    user();
    void setUsername(QString name);
    QString getUsername();
    void setUserpassword(QString password);
    QString getUserpassword();
    void setUserphone(QString phone);
    QString getUserphone();
    void setUsermail(QString mail);
    QString getUsermail();
    void setUserqq(QString qq);
    QString getUserqq();
    void setUsermoney(QString money);
    QString getUsermoney();
    bool getUserflag();
private:
    QString username;
    QString userpassword;
    QString userphone;
    QString usermail;
    QString userqq;
    QString usermoney;
//        Bitmap userimage;



};

#endif // USER_H
